package com.jason.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jason.mapper.EbUserMapper;
import com.jason.model.EbUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LoginService {
    @Resource
    private EbUserMapper ebUserMapper;

    public EbUser login(EbUser ebUser){
        EbUser lgnUser =ebUserMapper.selectOne(new QueryWrapper<EbUser>()
                .eq("EU_USER_NAME",ebUser.getEuUserName())
                .eq("EU_PASSWORD",ebUser.getEuPassword()));
        return lgnUser;
    }
}
